-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-9946. NumAllSinks metrics shows lower value than NumActiveSinks #5002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ZanderXu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ashutoshcipher for your report.
LGTM.
But I have a little different through. Maybe the Map<String, MetricsSink> allSinks is only used to store the registered MetricsSink and sinks is used to store all the MetricsSinkAdapter.
Do this modification or not looks good to me. Let's wait any good suggestions.
|
🎊 +1 overall
This message was automatically generated. |
|
@ZanderXu - Can we commit/merge this? (We dont have any other comments/suggestions) Thanks |
aajisaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thank you @ashutoshcipher for bringing this up, and thank you @ZanderXu for your review.
|
Merged. Thanks @ashutoshcipher for your contribution and thanks @aajisaka for your review. |
Good point. I suppose we can simplify |
apache#5002) Reviewed-by: Akira Ajisaka <[email protected]>
Description of PR
NumAllSinks metrics shows lower value than NumActiveSinks
JIRA - HADOOP-9946
How was this patch tested?
UT
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?